package org.mg.core.service.impl;

import org.mg.core.dao.UserDao;
import org.mg.core.entity.User;
import org.mg.core.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author MG
 * @since 06-04-2013
 */
@Service("userService")
public class UserServiceImpl implements UserService {

    @Autowired
    UserDao userDao;

    @Override
    public User loadUserByUsername(String userName) {
        return userDao.loadByUserName(userName);
    }
}
